from brian import *
from brian.library.random_processes import *
from brian.library.synapses import  *
import mydata as  mydat

class RGVars(mydat.globVars):

    #calculated Values
    area=mydat.globVars.dia*mydat.globVars.L*math.pi 
    cpf=(1*ufarad*cm**-2)*area
    gk=(36*msiemens*cm**-2)*area # war 36*
    gl=(0.1*msiemens*cm**-2)*area #
    gna=(30*msiemens*cm**-2)*area #
    gnap=(0.25*msiemens*cm**-2)*area #
    invtau=1/mydat.globVars.taue

    def __init__(self):
        self.area=self.dia*self.L*math.pi 
        self.cpf=(1*ufarad*cm**-2)*self.area
        self.invtau=1/self.taue
        self.gk=(36*msiemens*cm**-2)*self.area # war 36
        self.gl=(0.1*msiemens*cm**-2)*self.area #
        self.gna=(30*msiemens*cm**-2)*self.area #
        self.gnap=(0.25*msiemens*cm**-2)*self.area #

    